<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // function Student(name,age){
        //     this.username = name;
        //     this.age = age;
        //     this.room = "1103";
        //     this.course = "前端开发";
        // }
        // var s1 = new Student("张三",27);
        // console.log(s1);

        var a = 1
        var c = { name: "oli", age: 2 }
        function f1(n) {
            ++n
        }
        function f2(obj) {
            ++obj.age
        }
        f1(a)
        f2(c)
        f1(c.age)
        console.log(a)
        console.log(c)

    </script>
</body>

</html>